package com.sdi.persistence;

import java.util.List;

import com.sdi.model.Categoria;
import com.sdi.persistence.exception.AlreadyPersistedException;
import com.sdi.persistence.exception.NotPersistedException;

public interface CategoriaDao {
	
	List<Categoria> getCategorias();
	void save(Categoria cat) throws AlreadyPersistedException;
	void update(Categoria cat) throws NotPersistedException;
	void delete(String name) throws NotPersistedException;
	Categoria findByName(String name);

}
